Refactor before work on window display
authorBar Magal <barmagal@gmail.com>
Sun, 5 Jul 2015 20:10:01 +0000 (23:10 +0300)
committerBar Magal <barmagal@gmail.com>
Sun, 5 Jul 2015 20:10:01 +0000 (23:10 +0300)
commit67065197d340a24280b97cf7f6d49899f7ef42d8
tree02f28a014a6bd9f7ec0ceeaa122e95b97431cadd
parentffbdc2a3ca00d137fc60a1b2607c67023456f4e1
Refactor before work on window display

Wanted to add support for using display-buffer or popwin, ran into some
bugs, had to make changes to the code so future work will be easier.
Details below:

- separate between code to display window and code to populate buffer
  contents
- add `which-key-horizontal-buffer-height` similar to
  `which-key-vertical-buffer-width`
- abstract handling of different display methods into
  `which-key/show-buffer` and `which-key/hide-buffer`, instead of mixed
  in other functions
- remove `which-key/make-display-method-aliases`
- support two display methods: `minibuffer` and `side-window`, will add
  popwin later
- create start/stop functions for which-key--close-timer
- a few other changes
which-key.el